using System;
using Microsoft.Xna.Framework;

namespace Autobot
{
    static class EditorProgram
    {
        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        static void Main(string[] args)
        {
            if(args.Length != 7)
            {
                throw(new Exception("Need 6 args. \nReal Sizes in meters, WindowSize in pixels\n Usage: RealX RealY RealBlockX RealBlockY WindowSizeX WindowSizeY Filename.txt"));
            }
            Vector2 RealSize = new Vector2(Convert.ToSingle(args[0]),Convert.ToSingle(args[1]));
            Vector2 RealBlockSize = new Vector2(Convert.ToSingle(args[2]),Convert.ToSingle(args[3]));
            Vector2 WindowSize = new Vector2(Convert.ToSingle(args[4]),Convert.ToSingle(args[5]));

            using (MapEditor game = new MapEditor(RealSize,RealBlockSize,WindowSize, args[6]))
            {
                game.Run();
            }
        }
    }
}

